package com.xoa.controller.customNumber;

import com.xoa.model.attend.Attend;
import com.xoa.service.workflow.customNumber.CustomNumberService;
import com.xoa.util.common.wrapper.BaseWrapper;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.text.ParseException;

/**
 * Created by gsb on 2017/8/9.
 */
@RestController
@RequestMapping("/customNumber")
public class CustomNumberController {
    @Resource
    private CustomNumberService customNumberService;

    @RequestMapping(value = "/addCustomNumber", produces = { "application/json;charset=UTF-8" })
    public BaseWrapper addCustomNumber(Integer uuid,String model,String modelId) {
        return customNumberService.generateCustomNumber(uuid,model,modelId);

    }

    @RequestMapping(value = "/queryCustomNumber", produces = { "application/json;charset=UTF-8" })
    public BaseWrapper queryCustomNumber(HttpServletRequest request) {
        return customNumberService.queryCustomNumber(request);

    }


}
